library _;

import 'package:flutter/material.dart';
import 'package:flutter_app/Const/IFinal.dart';
import 'package:flutter_app/Main/Localizations.dart';
import 'package:flutter_app/Page/Mine/Bind/main.dart';
import 'package:flutter_app/Util/App/AppUtils.dart';
import 'package:flutter_app/Util/FileUtils.dart';
import 'package:flutter_app/Main/main++.dart';
import 'package:flutter_yfree/YFree.dart';

part 'controller.dart';

part 'view.dart';

class SettingsPage extends YPage {
  String cache = "";

  @override
  void yOnCreate() {
    controller_loadCache();
  }

  @override
  Widget yBuild(BuildContext context) {
    return Container(
      color: IFinal.Colors.pageBG,
      child: Column(
        children: [
          YAppBar(title: "设置"),
          view_bind(),
          Divider(height: 0.1),
          view_password(),
          YSpacer(height: 10),
          view_selectLanguage(),
          Divider(height: 0.1),
          view_cache(),
          YSpacer(height: 10),
          view_logout(),
        ],
      ),
    );
  }
}
